package com.ququ.syb.business.payment.fegin;

import com.ququ.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "commission")
public interface CommissionFegin {

    @RequestMapping(value = "/commission/pay/rate/customer")
    Result<Double> getPayCommissionRate(@RequestParam(value = "paychannelid") String paychannelid,
                                        @RequestParam(value = "appcode") String appcode,
                                        @RequestParam(value = "accountid") String accountid,
                                        @RequestParam(value = "partner") String partner);

    @RequestMapping(value = "/commission/pay/customer")
    Result<Long> getPayCommission(@RequestParam(value = "amount") Long amount,
                                  @RequestParam(value = "paychannelid") String paychannelid,
                                  @RequestParam(value = "appcode") String appcode,
                                  @RequestParam(value = "accountid") String accountid,
                                  @RequestParam(value = "partner") String partner);

    @RequestMapping("/commission/pay/cost")
    Result<Long> getPayCostCommissionRate(@RequestParam(value = "amount") Long amount,
                                          @RequestParam(value = "paychannelid") String paychannelid);

}
